# $NetBSD: Makefile,v 1.5 2014/01/25 10:38:16 thomasklausner Exp $

DISTNAME=	Booktype-1.5
PKGNAME=	${PYPKGPREFIX}-booktype-1.5
PKGREVISION=	1
CATEGORIES=	textproc
MASTER_SITES=	${MASTER_SITE_PYPI:=B/Booktype/}

MAINTAINER=	kamelderouiche@yahoo.com
HOMEPAGE=	http://booki-dev.flossmanuals.net/
COMMENT=	FLOSS Manuals collaborative book writing tool
LICENSE=	gnu-gpl-v3

DEPENDS+=	p5-Text-Aspell>=0.09:../../textproc/p5-Text-Aspell
DEPENDS+=	p5-XML-DOM>=1.44:../../textproc/p5-XML-DOM

DEPENDS+=	${PYPKGPREFIX}-simplejson>=2.6.0:../../converters/py-simplejson
DEPENDS+=	${PYPKGPREFIX}-feedparser>=5.1.2<6.0.0:../../textproc/py-feedparser5
DEPENDS+=	${PYPKGPREFIX}-lxml-[0-9]*:../../textproc/py-lxml
DEPENDS+=	${PYPKGPREFIX}-Unidecode>=0.04.9:../../textproc/py-Unidecode
DEPENDS+=	${PYPKGPREFIX}-django-[0-9]*:../../www/py-django3

WRKSRC=		${WRKDIR}/Booktype-1.5

USE_TOOLS+=	perl
USE_LANGUAGES=	# none

REPLACE_INTERPRETER+=	perl
REPLACE.perl.old=	.*/bin/perl
REPLACE.perl.new=	${PERL5}
REPLACE_FILES.perl=	${WRKSRC}/lib/booki/site_static/xinha/plugins/SpellChecker/spell-check-logic.cgi

REPLACE_INTERPRETER+=	python
REPLACE.python.old=	/usr/bin/env
REPLACE.python.new=	${PYTHONBIN}
REPLACE_FILES.python=	${WRKSRC}/lib/sputnik/redis-backuo.py


REPLACE_INTERPRETER+=	python
REPLACE.python.old=	/usr/bin/env
REPLACE.python.new=	${PYTHONBIN}
REPLACE_FILES.python=	${WRKSRC}/lib/booki/manage.py

.include "options.mk"

.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
